<?php
/**
 * Created by PhpStorm.
 * User: SAMSUNG-R428
 * Date: 16-1-26
 */

namespace Application\Dao;

use Infobird\Dao\MysqliBaseDao;

class RegDao extends MysqliBaseDao
{
	/**
	 * 提供数据表名
	 * @return string
	 */
	protected  function _provideTableName() {
		return 't_user';
	}

	public function userName($userName){
		$sql = "SELECT user_name FROM t_user WHERE user_name='{$userName}'";
		return $this->queryBySql($sql);
	}

    public function email($email){
        $sql = "SELECT email FROM t_user WHERE email='{$email}'";
        return $this->queryBySql($sql);
    }
}